import time

from httprunner import __version__


def get_httprunner_version():
    return __version__


def sum_two(m, n):
    return m + n


def sleep(n_secs):
    time.sleep(n_secs)


def random_name():
    from faker import Faker
    faker = Faker(locale='zh_cn')
    name = faker.name()
    return name
<<<<<<< HEAD

def get_id():
    import requests
    response = requests.post("http://60.205.190.66:8899/adminapi/login",json={'account': 'admin', 'pwd': '920509', 'imgcode': 'a'})
    token= response.json()['data']['token']
    response1 = requests.get("http://60.205.190.66:8899/adminapi/user/user_group/list",headers={'Authori-zation': 'Bearer '+ str(token)})
    for i in response1.json()['data']['list']:
        if i['group_name'] == "test王三":
            return i['id']





=======


# def back_value(response,key):
#     value = response.json().get(key)
#     return value
>>>>>>> d0fdb9c18a6a2147a59e245ff12db3d6d11bedc6

